/*
 * Copyright 2020-2030 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

package com.woodws.fresh.im.api.dto

import io.swagger.annotations.*

import java.time.LocalDateTime
import java.io.Serializable

/**
 * 消息服务登录会话表Dto
 * @author maoxiaodong
*/
@ApiModel(value = "消息服务登录会话表")
data class ImSessionDto(@ApiModelProperty(value = "id") var id: Long? = null): Serializable{

    /**
    * 登录用户id
    */
    @ApiModelProperty(value = "登录用户id")
    var userId: Long? = null

    /**
    * 设备
    */
    @ApiModelProperty(value = "设备")
    var device: String? = null

    /**
    * 设备型号
    */
    @ApiModelProperty(value = "设备型号")
    var deviceModel: String? = null

    /**
    * 登录服务器
    */
    @ApiModelProperty(value = "登录服务器ID")
    var serverId: Long? = null

    /**
    * 客户端版本
    */
    @ApiModelProperty(value = "客户端版本")
    var clientVersion: String? = null

    /**
    * 登录时间
    */
    @ApiModelProperty(value = "登录时间")
    var loginTime: LocalDateTime? = null

    /**
    * 登录状态(01:在线,02:忙碌,03:隐身)
    */
    @ApiModelProperty(value = "登录状态(01:在线,02:忙碌,03:隐身)")
    var status: String? = null


    /**
    * 租户ID
    */
    @ApiModelProperty(value = "租户ID")
    var tenantId: Long? = null
}